<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>艺术品数字身份证管理系统</title>

<link rel="stylesheet" href="assets/lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/lib/AdminLTE/css/AdminLTE.min.css">
<link rel="stylesheet" href="assets/css/all-skins.min.css">
<link rel="stylesheet" href="assets/css/main.css">

<link rel="stylesheet" href="assets/lib/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="assets/css/login.css" media="all" />
<link rel="stylesheet" href="assets/css/drag.css" type="text/css"/>

<link rel="icon" href="assets/images/favicon.ico"/>
<!--<style>
	.login-page{width: 100%;background: url("/adicms/assets/images/lg_bg.jpg") no-repeat;position: relative;background-size: cover;padding-top: 80px;}
</style>-->
<script src="assets/js/jQuery-2.2.0.min.js"></script>
<script src="assets/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/lib/AdminLTE/plugins/iCheck/icheck.min.js"></script>
<script src="assets/lib/layer/layer.js"></script>
<script src="assets/lib/vue/vue.min.js"></script>
<script src="assets/js/login.js"></script>
<!--<script src="assets/js/drag.js" type="text/javascript"></script>-->

<script type="text/javascript" src="assets/lib/layui/layui.js"></script>

</head>

<body onkeydown="keyLogin()">
	<div class="login">
		<h1>管理员登录</h1>
		<form class="layui-form">
			<div class="login-box" id="rrapp" v-cloak>
				<div class="layui-form-item">
					<input class="layui-input" type="text" id="name" v-model="loginName" placeholder="用户名" lay-verify="required" autocomplete="off">
				</div>
				<div class="layui-form-item">
					<input class="layui-input" type="password" id="pwd"  v-model="loginPassword" placeholder="密码" lay-verify="required" autocomplete="off">
				</div>
			<!--	<div class="layui-form-item form_code">
					<input class="layui-input" style="width: 140px;" name="captcha" placeholder="验证码" lay-verify="required" type="text" autocomplete="off">
					<div class="code"><img id="captcha" src="/captcha.jpg" width="116" height="36" onclick="refreshCode(this)"></div>
				</div>-->
				<button class="layui-btn login_btn" type="button" @click="login" id="login">登录</button>
			</div>
			<div class="drag_c" id="drag">
			</div>
		</form>

	</div>

<script type="text/javascript">

	$('#drag').drag();

	function keyLogin(){
		if (event.keyCode==13)  //回车键的键值为13
			document.getElementById("login").click(); //调用登录按钮的登录事件
	}
</script>

</body>

</html>